if (!jsx3.lang.Class.forName("ux.cdb.admin.mechanism.cooOrg.SelCooOrgTypeForSearch")) {

    /**
     * Define the <code>name of class</code> class.
     * This class inherit from <code>jsx3.gui.Block<code> GUI class.
     */
    jsx3.Class.defineClass("ux.cdb.admin.mechanism.cooOrg.SelCooOrgTypeForSearch", jsx3.gui.Dialog, null, function(objRoot){
       objRoot.prototype.parent=null;
	   
	   objRoot.prototype.ok_click=function()
	   {
	   		if (this.parent) {
				var matrix = this.getDescendantOfName("mtxCooOrgType");
				var orgType = null;
				var orgTypeId=null;
				if (matrix.getSelectedNodes().size() > 0) {
					orgType = matrix.getSelectedNodes().get(0).getAttribute("jsxtext");
					orgTypeId=matrix.getSelectedNodes().get(0).getAttribute("jsxid");
					if (matrix.getSelectedNodes().get(0).getAttribute("jsxcanselect") == "1") {
						//the node can be selected
						this.parent.searchTypeSelected(orgType,orgTypeId);
						this.doClose();
					}
				}
			}

	   }
	   
	   objRoot.prototype.clean_click=function()
	   {
	   		if (this.parent) {
				this.parent.searchTypeSelected("");
				this.doClose();
			}
	   }
	   
        
     /*
      * end class
      */   
    });
}
